package com.itSession.cn.exception;

/**
 * @program: demo
 * @ClassName: MyException
 * @description: 自定义异常
 * @author: hanP
 * @create: 2020-12-23 17:22
 **/
public class MyException extends RuntimeException {
    private static final long serialVersionUID = 2305653807231756702L;

    //异常信息
    private String message;

    //构造器
    public MyException(String message) {
        super(message);
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
